package org.example.demo;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Decrypt {

	public static void main(String[] args) throws IOException {
		
		FileInputStream fis = new FileInputStream("123.jpg");
		FileOutputStream fos = new FileOutputStream("321.jpg");
		
		int b;
		
		while( (b = fis.read()) != -1) {
			fos.write(b ^ 123);
		}
        
		fis.close();
		fos.close();
	}

}